// my.js
const request = require('./config/request')
const {
  BASEURL,
  BASEAPIAIIIIN,
  GPTSHIXIANJIA
} = require('./config/config')

module.exports = {
  // data可以传入 url, data, ignoreToken:请求是否携带token, form:是否是表单请求, cToken


  //  获取当前用户权限信息
  getcurrentuserauth(data) {
    let url = BASEAPIAIIIIN + '/app/userinfoauth/getcurrentuserauth'
    let toke = true
    return request.post({
      url,
      data
    })
  },
  // 获取粉丝 关注  获赞 数量
  getcount(data) {
    let url = BASEAPIAIIIIN + '/app/myfollow/getcount'
    return request.post({
      url,
      data
    })
  },
  //  签到
  signIn(data) {
    let url = BASEAPIAIIIIN + '/app/userinfoauth/usersign'
    let toke = true
    return request.post({
      url,
      data,
      toke
    })
  },
  // 分享小程序
  shareminiprogramn(data) {
    let url = BASEAPIAIIIIN + '/app/share/shareminiprogram'
    let toke = true
    return request.post({
      url,
      data,
      toke
    })
  },
  // 我的创作
  getMyCreationPageList(data) {
    let url = GPTSHIXIANJIA + '/api/app/mycreation/get-my-creation-page-list'
    return request.post({
      url,
      data
    })
  },
  // 我的收藏
  getMyFavoritePageList(data) {
    let url = GPTSHIXIANJIA + '/api/app/favorite/get-my-favorite-page-list'
    return request.post({
      url,
      data
    })
  },
  // 我的任务列表
  activitylist(data) {
    let url = BASEAPIAIIIIN + '/app/activity/activitylist'
    return request.post({
      url,
      data
    })
  },
  getDatabyid(data) {
    let url = GPTSHIXIANJIA + '/api/app/mycreation/get-data-by-id '
    return request.post({
      url,
      data
    })
  },
  getmycollectionbypage(data) {
    let url = BASEAPIAIIIIN + '/app/mycollection/getmycollectionbypage'
    return request.post({
      url,
      data
    })
  },
  // 获取一周签到
  usersigndetail(data) {
    let url = BASEAPIAIIIIN + '/app/userinfoauth/usersigndetail'
    return request.post({
      url,
      data
    })
  },
  // 加密活动id
  getsercetkey(data) {
    let url = BASEAPIAIIIIN + '/app/admin/activityauth/getsercetkey'
    return request.post({
      url,
      data
    })
  },
  //  邀请好友列表
  getinvitefriendlistbyuserid(data) {
    let url = BASEAPIAIIIIN + '/app/activitys/getinvitefriendlistbyuserid'
    return request.post({
      url,
      data
    })
  },
  //  字典查询海报id
  getaidictitemtreebypage(data) {
    let url = BASEAPIAIIIIN + '/app/admin/dictionary/getaidictitemtreebypage'
    return request.post({
      url,
      data
    })
  },
  //  生成海报
  createposter(data) {
    let url = BASEAPIAIIIIN + '/app/poster/createappletposter'
    return request.post({
      url,
      data
    })
  },
  //  参加好友活动

  invivtereward(data) {
    let url = BASEAPIAIIIIN + '/app/activity/invivtereward'
    return request.post({
      url,
      data
    })
  },
  // 限时活动领取
  communitywelfare(data) {
    let url = BASEAPIAIIIIN + '/app/activity/communitywelfare'
    return request.post({
      url,
      data
    })
  },
  // 限时活动领取详情
  welfareactivitydetail(data) {

    let url = BASEAPIAIIIIN + '/app/activity/welfareactivitydetail'
    return request.post({
      url,
      data
    })
  },
  scancodetosendvipacceptreward(data) {
    let url = BASEAPIAIIIIN + '/app/activitys/scancodetosendvipacceptreward'
    return request.post({
      url,
      data
    })
  },
  // 判断是否我们用户
  isuserasync(data) {
    let url = BASEAPIAIIIIN + '/app/userinfo/isuserasync'
    return request.post({
      url,
      data
    })
  },
  // 获取二维码
  getaidicitembytype(data) {
    let url = BASEAPIAIIIIN + '/app/dictionary/getaidicitembytype'
    return request.post({
      url,
      data
    })
  },
  // 获取模型列表
  getMyworlLlist(data) {
    let url = GPTSHIXIANJIA + '/api/app/ai-model-data/get-my-world-list'
    return request.post({
      url,
      data
    })
  },
  //我的收藏
  getaicollectionList(data) {
    let url = GPTSHIXIANJIA + '/api/app/ai-model-collection/get-ai-model-collection-list'
    return request.post({
      url,
      data
    })
  },
  //我的训练
  getList(data) {
    let url = GPTSHIXIANJIA + '/api/app/user-image-data-set/get-list'
    return request.post({
      url,
      data
    })
  },
  getuserinformation(data) {
    let url = BASEAPIAIIIIN + '/app/userinfoauth/getuserinformation'
    return request.post({
      url,
      data
    })
  },
  deleteModel(data) {
    let url = GPTSHIXIANJIA + '/api/app/user-image-data-set/delete-by-id'
    return request.post({
      url,
      data
    })
  },
  getcurrentusermodelincome(data = {}) {
    let url = BASEAPIAIIIIN + '/app/userinfoauth/getcurrentusermodelincome'
    return request.post({
      url,
      data
    })
  },
  querybyid(data = {}) {
    let url = BASEAPIAIIIIN + '/app/content/querybyid'
    return request.post({
      url,
      data
    })
  },

}